// Filename: router.js
define([
    'jquery',
    'underscore',
    'backbone',
    ], function($, _, Backbone){
        var AppRouter = Backbone.Router.extend({
            routes: {
				'countdown': 'countdown',
                'countdown/*path': 'countdown',
                '*actions': 'defaultAction'

            },
			countdown: function(){
	            require(['views/countdown'], function (countdownView) {
	                countdownView.render();
	            });
	        },
            defaultAction: function(actions){
            // We have no matching route, lets display the home page
            }
        });
        var initialize = function(){
            var app_router = new AppRouter;
            Backbone.history.start({
                pushState: true,
                root: $base_url.replace("http://localhost", "") + "comingsoon/"
            });
        };
        return {
            initialize: initialize
        };
    });